package lesson20;

public class Demo {
	public static void main(String[] args) {
		Person ivan = new Person();
		Person mariq = new Person();
		try{
			System.out.println(ivan.hasSameName(mariq));
		}catch (PersonException e){
			System.out.println("problem with your person");
			e.printStackTrace();
			
		}
		
		System.out.println("Ivan and mariq");
	}
}
